package cn.shengchao.ycbdc.domain.result;

import cn.hutool.json.JSONUtil;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: examstarapi
 * @description: 忆成背单词用户信息实体
 * 返回值:{"code":2000,
 * "data":{"cts":"2025-06-03 17:33:46","uts":"2025-06-03 17:58:35","id":715,"nickName":"张三",
 * "unionId":null,"openId":null,"officialOpenid":null,
 * "avatar":"http://cdn-cloud.yixuewang.cn/image/2024/6/5/logo.png?Expires=1748948315&OSSAccessKeyId=LTAI4G1D2WX54jP83vTeRaK8&Signature=cHLNJIl0x0QckW7GsbRfAeka7AM%3D",
 * "province":null,"city":null,"area":null,"industry":null,
 * "interest":null,"mobile":"13111111111","sex":null,"birthday":null,
 * "expirationDate":"2025-08-02T09:57:50.000+00:00","isVip":1,"parentId":null,
 * "inviteCode":"9db6ca70fd4341138d8097dfcb38e1ed","role":0,"level":1,
 * "activationCodeCount":0},"msg":"成功","requestId":"16906237730417920"}
 * @author: Xiong weiqiang
 * @create: 2025-06-03 18:23
 */
@Data
public class UserInfoResult implements Serializable {
    // 创建时间
    private Date cts;
    // 更新时间
    private Date uts;
    private Integer id;
    private String nickName;
    private String unionId;
    private String openId;
    private String officialOpenid;
    private String avatar;
    private String province;
    private String city;
    private String area;
    private String industry;
    private String interest;
    private String mobile;
    private String sex;
    private Date birthday;
    // 过期日期
    private Date expirationDate;
    // 是否为VIP
    private Integer isVip;
    private String parentId;
    private String inviteCode;
    private Integer role;
    private Integer level;
    private Integer activationCodeCount;
    public static void main(String[] args){
        String json="{\"cts\":\"2025-06-03 17:33:46\",\"uts\":\"2025-06-03 17:57:55\",\"id\":715,\"nickName\":\"张三\",\"unionId\":null,\"openId\":null,\"officialOpenid\":null,\"avatar\":\"http://cdn-cloud.yixuewang.cn/image/2024/6/5/logo.png?Expires=1748948314&OSSAccessKeyId=LTAI4G1D2WX54jP83vTeRaK8&Signature=%2FALK5ZiMAB67Sdo0Pd8jBD%2F3oMs%3D\",\"province\":null,\"city\":null,\"area\":null,\"industry\":null,\"interest\":null,\"mobile\":\"13111111111\",\"sex\":null,\"birthday\":null,\"expirationDate\":\"2025-07-03T09:57:50.000+00:00\",\"isVip\":1,\"parentId\":null,\"inviteCode\":\"9db6ca70fd4341138d8097dfcb38e1ed\",\"role\":0,\"level\":1,\"activationCodeCount\":0}";
        UserInfoResult userInfoResult= JSONUtil.toBean(json, UserInfoResult.class);
        System.out.println(userInfoResult);
    }
}